package com.gitee.myclouds.examples.discovery.provider.controller;

import java.math.BigDecimal;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.gitee.myclouds.examples.discovery.provider.model.BankCard;

/**
 * 银行卡服务
 * @author xiongchun
 *
 */
@RestController
@RequestMapping("backCard")
public class BankCardController {
	
	@GetMapping("findCardInfo")
	public BankCard findCardInfo(String cardId) {
		System.out.println(cardId);
		BankCard bankCard = new BankCard().setCardNo("5301001").setName("XC").setBalance(BigDecimal.valueOf(1000000L));
		return bankCard;
	}
}
